package com.gitee.ykr.lightweight.rpc.common.delegate;

import com.gitee.ykr.lightweight.rpc.config.NettyRpcProperties;
import com.gitee.ykr.lightweight.rpc.common.container.CacheContainer;
import com.gitee.ykr.lightweight.rpc.common.container.ExcutorContainer;

/**
 * @author YKR
 * @Describe
 * @date 2021/8/23
 */
public class NettyRpcDelegateImpl implements NettyRpcDelegate{

    //rpc配置
    protected NettyRpcProperties nettyRpcProperties;
    //缓存
    protected CacheContainer cacheContainer;
    //线程池
    protected ExcutorContainer excutorContainer;

    @Override
    public NettyRpcProperties getNettyRpcProperties() {
        return nettyRpcProperties;
    }

    @Override
    public void setNettyRpcProperties(NettyRpcProperties nettyRpcProperties) {
        this.nettyRpcProperties = nettyRpcProperties;
    }

    @Override
    public CacheContainer getCacheContainer() {
        return cacheContainer;
    }

    @Override
    public void setCacheContainer(CacheContainer cacheContainer) {
        this.cacheContainer = cacheContainer;
    }

    @Override
    public ExcutorContainer getExcutorContainer() {
        return excutorContainer;
    }

    @Override
    public void setExcutorContainer(ExcutorContainer excutorContainer) {
        this.excutorContainer = excutorContainer;
    }
}
